package com.parktech.sun.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * User: Think
 * Date: 11-1-21
 * Time: 上午12:45
 */
public class SunListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent servletContextEvent) {
        GlobalConfig.setWebRoot(servletContextEvent.getServletContext().getRealPath(""));
    }

    public void contextDestroyed(ServletContextEvent servletContextEvent) {
    }
}
